package com.nononsenseapps.feeder.net.obs.model

import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class CommandList(val commandList: Array<Command>) {

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as CommandList

        if (!commandList.contentEquals(other.commandList)) return false

        return true
    }

    override fun hashCode(): Int {
        return commandList.contentHashCode()
    }
}

@JsonClass(generateAdapter = true)
data class Command(val id:String,val name:String)